<html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Table</title>
		<link rel="stylesheet" href="__STATIC__/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="__CSS__/global.css" media="all">
		<link rel="stylesheet" href="__STATIC__/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="__CSS__/table.css" />
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.config.js"></script>
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="__JS__/lang/zh-cn/zh-cn.js"></script>



	</head>
	<body>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
				<legend>
			       
				选择模板
		  	
		  			
		</fieldset>
		<form action="__ADMIN__/commodel/bank_add" method="post">

   			 <label class="layui-form-label">选择模板</label>
				    <div class="layui-input-block">
				      <select name="model_id" lay-verify="required">
				         {volist name="model" id="vo"}	
				        <option value="{$vo.id}"{if condition="($vo.id == $model_id)"} selected {/if}>{$vo.model_name}</option >
			  	  		{/volist}
			  	  		{/if}
				      </select>
				  </div>
				
				  <div class="layui-form-item">
				
				    </div>
				  </div> 
				
				<input type="hidden" name="id" value="{$id}">
				<div class="layui-input-block">
					<input type="submit" class="layui-btn" value="提交">
				</div>
		</form>
		<script type="text/javascript" src="__STATIC__/plugins/layui/layui.js"></script>
			<script type="text/javascript" src="__STATIC__/datas/nav.js"></script>	
			<script src="__JS__/index.js"></script>
		    <script src="__JS__/jquery.js"></script>
	</body>
</html>
<script >
	layui.config({
			base: '__STATIC__/plugins/layui/modules/'
		});

		layui.use(['form', 'layedit', 'laydate','icheck', 'laypage','layer'], function() {
		var 	layer = layui.layer,
			layedit = layui.layedit,
			laydate = layui.laydate;


		var editIndex = layedit.build('LAY_demo_editor');

		 $('.test1').on('click', function() {
		 	var type = $(this).attr("res");
			  layer.open({
			      type: 2,
				      title: '图片',
				      maxmin: true,
				      offset: 't',
				      anim: 2,
				      shadeClose: true, //点击遮罩关闭层
			      area : ['600px' , '520px'],
			      content: '__ADMIN__/bank/img?type='+type
			   });
		 });

		})

</script>
  <script type="text/javascript">
      
</script>